function handleTime(dateStr) {
    if (dateStr === undefined) {
        return;
    }
    var date = dateStr
    var now = new Date();
    var digit = parseInt((now.getTime() - date) / 1000);
    var suffix = '秒前';
    if (digit < 60) {
        return '刚刚';
    } else {
        digit = parseInt(digit / 60);
        suffix = '分钟前';
        if (digit >= 60) {
            digit = parseInt(digit / 60);
            suffix = '小时前';

            if (digit >= 24) {
                digit = parseInt(digit / 24);
                suffix = '天前';
            }
        }
    }
    return digit + suffix;
}